home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / PowerPlant / LButtonKeyAtt / LButtonKeyAtt readme next >
Encoding:
Text File  |  1995-09-24  |  1.5 KB  |  36 lines  |  [TEXT/CWIE]

  1.  
  2. I've posted the source for a PowerPlant attachment that allows you to 
  3. activate a button in a dialog (or a window) from the keyboard. The UI is 
  4. the same as in Nisus (or WordPerfect 3); while you hold down the command 
  5. key, a hint appears next to the button. For example, if the button is 
  6. "Don't Save", you'll get a little cmd-D beside it; hitting cmd-d activates 
  7. the button.
  8.  
  9. from the .h file:
  10.  
  11. /*
  12.  * Attach an instance of LButtonKeyAtt to an LStdButton in a PowerPlant
  13.  *    window. If the user holds down the command key, a "*X" symbol will
  14.  *    appear next to the button - where * is the symbol on the command key
  15.  *    and X is the uppercase version of the first letter of the button.
  16.  *    If the user presses this key combination, the button is clicked.
  17.  *
  18.  *    Placed in the public domain by Roger Pantos, Sept. 24 1995.
  19.  */
  20.  
  21. The only caveat is that it requires CW7, and that RTTI must be activated 
  22. for the PowerPlant library and your own code. (This is necessary to allow 
  23. downcasting from an LAttachable to an LPane, and for side-casting an LPane 
  24. to an LCommander.)
  25.  
  26. The source is in alt.mac.sources, comp.mac.sources, and will be on the
  27. PP web site as soon as I find my reference to it.
  28.  
  29. Special thanks to Greg Dow, for putting attachments into PowerPlant.
  30.  
  31. cheers,
  32.  
  33. --
  34. Roger Pantos                 rpantos@io.org                telesisnorth
  35. Mac Software Guy             Telesis North, Inc.           (AppleLink)
  36. I've got a Mac instead of a DOS box because I need a tool, not a hobby.